package com.xframe.xdal.core.util.redis.pool;

import com.xframe.xdal.config.RedisConfig;
import redis.clients.jedis.commands.BasicCommands;
import redis.clients.jedis.commands.JedisCommands;
import redis.clients.jedis.commands.MultiKeyCommands;

public interface IRedisPool<T> {

    void initPool(RedisConfig redisConfig);

    JedisCommands getClient();

    BasicCommands getBasicCommands();

    MultiKeyCommands getMultiKeyCommands();

    T getResource();

    void close(T client);

}
